package com.pshcp.patient.tool;

import com.framework.thread.ReqComHold;
import com.framework.tool.CommonTool;
import com.pshcp.common.enums.FeedbackTypeEnum;
import com.pshcp.common.enums.UserTypeEnum;
import com.pshcp.domain.model.Feedback;
import com.pshcp.patient.domain.patientuser.ao.PatientFeedbackAO;

public class PatientUserTools {

    public static Feedback buildPatientUserFd(PatientFeedbackAO feedbackAO){
        Feedback feedback = CommonTool.copyProperties(feedbackAO, Feedback.class);
        feedback.setUserType(UserTypeEnum.PATIENT.getCode());
        feedback.setBizType(FeedbackTypeEnum.SUGGEST.getCode());
        feedback.setUserId(ReqComHold.getReqCom().getUserId());
        return feedback;
    }

}
